package org.oslims.client.presenter;

import org.oslims.client.MainEventBus;
import org.oslims.client.uicomponents.WidgetUtils;
import org.oslims.client.view.impl.UploadViewImpl;

import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.mvp4g.client.annotation.Presenter;
import com.mvp4g.client.presenter.BasePresenter;

@Presenter(view = UploadViewImpl.class)
public class UploadPresenter extends BasePresenter<UploadViewImpl, MainEventBus> {

	public void onShowUpload(DockLayoutPanel mainWidget) {

		WidgetUtils.removeCenterWidget(mainWidget);
		mainWidget.add(view.getViewWidget());
	}
}
